package cn.signalpha.modules.base.entity.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 类说明
 *
 * @author signalpha
 */
@Getter
@AllArgsConstructor
public enum NoticeTypeEnum {

	/**
	 * 订单支付成功通知
	 */
	ORDER_PAY("orderPay", "订单支付通知"),

	/**
	 * 订单发货通知
	 */
	ORDER_SEND_OUT("orderSendOut", "订单发货通知"),

	/**
	 * 订单收货通知
	 */
	ORDER_RECEIPT("orderReceipt", "订单收货通知"),

	/**
	 * 订单售后通知
	 */
	ORDER_REFUND("orderRefund", "订单售后通知"),

	/**
	 * 新客绑定通知
	 */
	USER_BINDING("userBinding", "新客绑定通知"),

	/**
	 * 佣金待入账通知
	 */
	BROKERAGE("brokerage", "佣金待入账通知"),

	/**
	 * 商户审核通知
	 */
	SELLER_AUDIT("sellerAudit", "商户审核通知"),

	/**
	 * 分销员审核通知
	 */
	PLACE_AUDIT("placeAudit", "分销员审核通知"),
    ;

    private final String type;
    private final String name;

	public static NoticeTypeEnum instance(String type) {
		NoticeTypeEnum[] values = NoticeTypeEnum.values();
		for (NoticeTypeEnum statusEnum : values) {
			if (statusEnum.type.equals(type)) {
				return statusEnum;
			}
		}
		return null;
	}

}
